﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DingTalkAgent.Web.Models
{
    public class PagingInfo
    {
        /// <summary>
        /// 总记录数
        /// </summary>
        public int records { get; set; }
        /// <summary>
        /// 页面大小
        /// </summary>
        public int pagesize { get; set; }
        /// <summary>
        /// 当前页
        /// </summary>
        public int page { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int total
        {
            get { return (int)Math.Ceiling((decimal)records / pagesize); }
        }

    }

}